package map;

import java.awt.Image;

public class TileProperties {
	
	private boolean blocked = false;
	private String type = "dirt";
	
	public void setType(String s) {
		type = s;
		if (type.equalsIgnoreCase("water")) {
			blocked = true;
		}
	}
	
	public Image getType() {
		return Map.IMAGES.getTexture(type);
	}
	
	public void setBlocked(boolean b) {
		blocked = b;
	}
	
	public boolean getBlocked() {
		return blocked;
	}
	
}
